<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="0">
    <title>预约体检</title>
    <link rel="stylesheet" href="../../static/css/style.css">
    <link rel="stylesheet" href="../../static/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/styleoneadd.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-lans ">
        <div class="layui-logo layui-logo-sy"><img src="../../static/images/logo6.png" class="layui-logo-icon"/></div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <!--<ul class="layui-nav layui-layout-left ">
            <li class="layui-nav-item layui-this "><a href="javascript:;" class="header-title-size" target="header-t">问卷与题库</a></li>
        </ul>-->
        <ul class="layui-layout-right layui-rigth-admin">
            <li class="layui-nav-item layui-right-width1">
                <a href="javascript:;" >
                    <i class="layui-icon layui-icon2">&#xe66f;</i>
                    <label id="userInfoName"></label>
                </a>
            </li>
            <li class="layui-nav-item layui-right-width1">
                <a href="javascript:doLogout();" style="position: relative;top:2px;">退出</a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree layui-pading-top2" lay-filter="test">
                <li class="layui-nav-item">
                    <a href="javascript:;" class="layui-font-size-2" target="creat-wj" >
                        <!--<i class="layui-icon layui-icon-component"></i>-->
                        <img src="../../static/images/questionnaire-icon.png" class="layui-order-icon"/>
                        问卷管理
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="paperManage.html" target="creat-wj">问卷列表</a></dd>
                    </dl>
                    <dl class="layui-nav-child">
                        <dd><a href="createPaper.html" target="creat-wj">创建问卷</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" class="layui-font-size-2" target="creat-wj">
                        <img src="../../static/images/question-icon.png" class="layui-order-icon"/>
                        题库管理
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="questionManage.html" target="creat-wj" >题库列表</a></dd>
                    </dl>
                    <dl class="layui-nav-child">
                        <dd><a href="createQuestion.html" target="creat-wj" >新增问题</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="localUnitermManage.html" class="layui-font-size-2" target="creat-wj">
                        <img src="../../static/images/platform-icon.png" class="layui-order-icon"/>
                        平台单向库管理
                    </a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" target="creat-wj" class="layui-font-size-2">
                        <img src="../../static/images/type-icon.png" class="layui-order-icon"/>
                        类型管理
                    </a>
                    <!--<dl class="layui-nav-child">
                        <dd><a href="typeManage.html" target="creat-wj">类型列表</a></dd>
                    </dl>-->
                    <dl class="layui-nav-child">
                        <dd><a href="paperType.html" target="creat-wj">问卷类型</a></dd>
                    </dl>
                    <dl class="layui-nav-child">
                        <dd><a href="questionType.html" target="creat-wj">问题类型</a></dd>
                    </dl>
                </li>
                <!--<li class="layui-nav-item">
                    <a href="que.html" target="creat-wj" class="layui-font-size-2">
                        <img src="../static/images/questionnaire-icon.png" class="layui-order-icon"/>
                        缺省页面
                    </a>
                </li>-->
            </ul>
        </div>
    </div>

    <div class="layui-body " style="background-color: #f2f2f2;">
        <!-- 内容主体区域 -->
        <iframe name="creat-wj" src="chushi.html" style="width: 100%;height: 99.6%;border: none;"></iframe>
        <!-- 内容主体区域 -->
    </div>
    <div class="layui-footer" style="text-align: center">
        <!-- 底部固定区域 -->
        Copyright © 2018 掌心科技（苏州）有限公司版权所有
    </div>


</div>
<script src="../../static/plugins/layui/layui.js"></script>
<script src="../../static/js/jquery.min.js"></script>
<script src="../../static/js/app/consts/consts.js"></script>
<script src="../../static/js/app/util/common.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['form','layer', 'element'], function(){
        var element = layui.element;

        $(function () {
            $.ajax(
                {
                    url :"/loadUserInfo",
                    data:{},
                    async:false,
                    type : 'POST',
                    dataType : 'json',
                    success : function(dataMsg){
                        console.log(dataMsg);
                        if(dataMsg.state == 1){
                            var username = dataMsg.data;
                            $('#userInfoName').html("欢迎 : " + username);
                        }else {
                            layui.use(['layer'], function() {
                                layer.msg(dataMsg.message);
                            })
                        }
                    },
                    error : function(err){
                    }
                }
            )
        })
    });
</script>
</body>
</html>